package apiday08.reflect;

import apiday08.reflect.annotation.AutoRunClass;
import apiday08.reflect.annotation.AutoRunMethod;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class ReflectDemo10 {
    public static void main(String[] args) throws Exception {
        Class cls = Class.forName("apiday08.reflect.Person");
        if (cls.isAnnotationPresent(AutoRunClass.class)) {
            System.out.println("被标注了");
        } else {
            System.out.println("没有被标注");
        }
    }
}
